
	<table class="table table-hover table-bordered table-list">
				<thead>
					<tr>
						<th width="15"><label><input type="checkbox" class="js-check-all" data-direction="x" data-checklist="js-check-x"></label></th>						
						<th width="50"><a href="javascript:sort('sort');">{:L('SORT')}</a></th>						
						<th width="50"><a href="javascript:sort('goods_id');">ID</a></th>
						<th><a href="javascript:sort('goods_name');">商品名称</a></th>
						<!--th width="70"><a href="javascript:sort('goods_sn');">商品货号</a></th-->
						<th width="70"><a href="javascript:sort('shop_price');">价格</a></th>
						<th width="50"><a href="javascript:sort('store_count');">库存</a></th>
						<th>分类</th>
						<th width="50">上架</th>
						<th width="50">推荐</th>
						<th width="50">新品</th>
						<th width="50">热卖</th>
						
						<th width="70">操作</th>
					</tr>
				</thead>
				<foreach name="goodslist" item="vo">
				<tr>
					<td><input type="checkbox" class="js-check" data-yid="js-check-y" data-xid="js-check-x" name="ids[]" value="{$vo.goods_id}" title="ID:{$vo.goods_id}"></td>
					<td><input name="listorders[{$vo.goods_id}]" class="input input-order" onchange="updateSort('goods','goods_id','{$vo.goods_id}','sort',this)" type="text" size="5" value="{$vo.sort}"></td>
                    <td><b>{$vo.goods_id}</b></td>
					<td><a href="{:U('Goods/article/index',array('g_id'=>$vo['goods_id']))}" target="_blank">{$vo.goods_name}</a></td>
					<!--td>{$vo.goods_sn}</td-->					
					<td>{$vo.shop_price}</td>
					<td><input class="input input-order" type="text" size="5" value="{$vo.store_count}" onchange="updateSort('goods','goods_id','{$vo.goods_id}','store_count',this)" /></td>
					<td>{$vo.name}</td>
					<td style='text-align:center;'><i class='fa <if condition="$vo.is_on_sale eq 1">fa-check<else />fa-close</if>' onclick="changeTableVal('goods','goods_id','{$vo.goods_id}','is_on_sale',this)" ></i></td>					
					<td style='text-align:center;'><i class='fa <if condition="$vo.is_recommend eq 1">fa-check<else />fa-close</if>' onclick="changeTableVal('goods','goods_id','{$vo.goods_id}','is_recommend',this)" ></i></td>
					<td style='text-align:center;'><i class='fa <if condition="$vo.is_new eq 1">fa-check<else />fa-close</if>' onclick="changeTableVal('goods','goods_id','{$vo.goods_id}','is_new',this)" ></i></td>
					<td style='text-align:center;'><i class='fa <if condition="$vo.is_hot eq 1">fa-check<else />fa-close</if>' onclick="changeTableVal('goods','goods_id','{$vo.goods_id}','is_hot',this)" ></i></td>
					
					<td>
						<a href="{:U('AdminGoods/edit',array('id'=>$vo['goods_id']))}">{:L('EDIT')}</a> | 
						<a href="javascript:;" onclick="del('{$vo['goods_id']}')" class="">{:L('DELETE')}</a>
					</td>
				</tr>
				</foreach>
				
			</table>
			<div class="pagination">{$page}</div>

<script src="__PUBLIC__/js/common.js"></script>
<script type="text/javascript">
	$(".pagination a").click(function(){
        cur_page = $(this).data('p');
        ajax_get_table('search-form2',cur_page);
    });
</script>